<?php
class SN_Zend_Validator_ArrayRecurse implements Zend_Validate_Abstract{
	protected $_messageTemplates = array( __CLASS__ => "" );
	var $childValidator;
	public function __construct( $childValidator ){
		$this->childValidator = $childValidator;
	}
	public function isValid( $value ){
		if( !is_array($value) ){
			return $this->childValidator->isValid( $value );
		} else {
			return snk_array_and( 
				array_map( array($this,'isValid'), $value )
			);
		}
	}
}
